package ru.yermak.bookkeeping.account;

import ru.yermak.bookkeeping.common.UserDao;
import ru.yermak.bookkeeping.model.Group;
import ru.yermak.bookkeeping.model.User;

import java.util.Map;
import java.util.HashMap;

/**
 * User: harrier
 * Date: Oct 8, 2008
 */
public class MockUserDao implements UserDao {
    private Map<Integer, Group> groups = new HashMap<Integer, Group>();

    public Group getGroupByUserId(Integer userId) {
        return null;
    }

    public Group getGroupById(Integer groupId) {
        return groups.get(groupId);
    }

    @Override
    public User getUserByLogin(String login) {
        return null;
    }

    @Override
    public Integer saveGroup(Group group) {
        return null;
    }

    @Override
    public Integer saveUser(User user) {
        return null;
    }

    @Override
    public User getUserById(Integer userId) {
        return null;
    }

    public void addGroup(Group group) {
        groups.put(group.getId(), group);
    }
}
